package com.isoft.student.dao;

import com.isoft.student.eo.AnswerEOPage;
import com.isoft.student.model.Answer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 答题操作接口
 */
@Mapper
public interface AnswerMapper {

    //答题添加
    int insertAnswer(Answer answer);

    //通过答题表答题id来获取学生答题
    int getTestpaperidCount(Integer testpaperid);

    //答题更新
    int updateAnswer(Answer answer);

    //通过学生主键删除答题表
    int delAnswer(Integer answer);

    //根据答题信息主键获取是否存在信息
    int getAnswerspaperCount(Integer answerid);

    //根据条件获取相关信息
    List<AnswerEOPage> getAnswerWhereAll(AnswerEOPage answerEOPage);
}
